From c8a1f1c7fce74352f4c2aabcf13803502debacc0 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 19 Oct 2005 13:34:44 +0100 Subject: [PATCH] Some trivial changes for the tool scripts: - make xen-hotplug-common.sh (un)set locales. - use xen-hotplug-common.sh in vif-bridge. From Gerd Knorr . Signed-off-by: Ewan Mellor --- tools/examples/vif-bridge | 7 ++----- tools/examples/xen-hotplug-common.sh | 4 +++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/examples/vif-bridge b/tools/examples/vif-bridge index 0f692d689f..0174d81116 100755 --- a/tools/examples/vif-bridge +++ b/tools/examples/vif-bridge @@ -31,11 +31,8 @@ # rules for its ip addresses (if any). #============================================================================ -# Exit if anything goes wrong -set -e -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH - -echo "*vif-bridge $*" >&2 +dir=$(dirname "$0") +. "$dir/xen-hotplug-common.sh" # Operation name. OP=$1 diff --git a/tools/examples/xen-hotplug-common.sh b/tools/examples/xen-hotplug-common.sh index aa0f7fabc8..10c7d4c87b 100644 --- a/tools/examples/xen-hotplug-common.sh +++ b/tools/examples/xen-hotplug-common.sh @@ -1,6 +1,8 @@ set -e -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH +export PATH="/sbin:/bin:/usr/bin:/usr/sbin:$PATH" +export LANG="POSIX" +unset $(set | grep ^LC_ | cut -d= -f1) log() { local level="$1" -- 2.30.2